package com.qf.service.Impl;

import com.qf.dao.UserDao;
import com.qf.dao.Impl.UserDaoImpl;
import com.qf.dto.UserDto;
import com.qf.pojo.User;
import com.qf.service.UserService;


public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoImpl();

    @Override
    public User login(UserDto userDto) {
        return userDao.login(userDto);
    }

    @Override
    public Boolean insert(UserDto userDto) {
        if (userDao.insert(userDto) > 0) {
            return true;
        }
        return false;
    }
}
